// @ts-nocheck
import React from 'react';
import { ApplyPluginsType, dynamic } from '/Users/kira/Documents/workspaces/incubate/mega-ide/frontend/node_modules/umi/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "component": dynamic({ loader: () => import(/* webpackChunkName: '.umi__plugin-layout__Layout' */'/Users/kira/Documents/workspaces/incubate/mega-ide/frontend/src/.umi/plugin-layout/Layout.tsx')}),
    "routes": [
      {
        "path": "/",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__IdeRegistry__index' */'@/pages/IdeRegistry/index')}),
        "exact": true
      },
      {
        "path": "/ide_registry",
        "name": "镜像源",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__IdeRegistry__index' */'@/pages/IdeRegistry/index')}),
        "exact": true
      },
      {
        "path": "/ide_image",
        "name": "镜像",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__IdeImage__index' */'@/pages/IdeImage/index')}),
        "exact": true
      },
      {
        "path": "/ide_enviroment",
        "name": "资源配置",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__IdeEnvironment__index' */'@/pages/IdeEnvironment/index')}),
        "exact": true
      },
      {
        "path": "/ide",
        "name": "开发环境",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Ide__index' */'@/pages/Ide/index')}),
        "exact": true
      }
    ]
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
